package com.ysqcould.allocation.domain;


import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 角色对象 t_wx_role
 * 
 * @author ruoyi
 * @date 2022-06-29
 */
public class WxRole extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 角色名称 */
    @Excel(name = "角色名称")
    private String roleName;

    /** 分组备注 */
    @Excel(name = "分组备注")
    private String groupRemark;

    /** 是否为入会申请默认角色：0不是，1是 */
    @Excel(name = "是否为入会申请默认角色：0不是，1是")
    private Long isDefault;

    /** 状态（字典 0正常 1冻结 2删除） */
    @Excel(name = "状态", readConverterExp = "字=典,0=正常,1=冻结,2=删除")
    private Long status;

    /** 协会id */
    @Excel(name = "协会id")
    private Long asId;

    /** 报表权限（默认0关闭，1开启） */
    @Excel(name = "报表权限", readConverterExp = "默=认0关闭，1开启")
    private Long statement;

    /** 通信录权限（默认0关闭，1开启） */
    @Excel(name = "通信录权限", readConverterExp = "默=认0关闭，1开启")
    private Long contacts;

    /** 查看权限（0 全部 1部分） */
    @Excel(name = "查看权限", readConverterExp = "0=,全=部,1=部分")
    private Long type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRoleName(String roleName) 
    {
        this.roleName = roleName;
    }

    public String getRoleName() 
    {
        return roleName;
    }
    public void setGroupRemark(String groupRemark) 
    {
        this.groupRemark = groupRemark;
    }

    public String getGroupRemark() 
    {
        return groupRemark;
    }
    public void setIsDefault(Long isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Long getIsDefault() 
    {
        return isDefault;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setAsId(Long asId) 
    {
        this.asId = asId;
    }

    public Long getAsId() 
    {
        return asId;
    }
    public void setStatement(Long statement) 
    {
        this.statement = statement;
    }

    public Long getStatement() 
    {
        return statement;
    }
    public void setContacts(Long contacts) 
    {
        this.contacts = contacts;
    }

    public Long getContacts() 
    {
        return contacts;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roleName", getRoleName())
            .append("groupRemark", getGroupRemark())
            .append("isDefault", getIsDefault())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("asId", getAsId())
            .append("statement", getStatement())
            .append("contacts", getContacts())
            .append("type", getType())
            .toString();
    }
}
